package com.hdhere.domain.media;

import com.hdhere.domain.common.IEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Time;

/**
 * Created by dus on 2019/1/5.
 */
@Entity
@Table(name = "audio", schema = "media")
public class Audio implements IEntity {

    @Id
    @Column(columnDefinition="tinyint")
    private String id;

    @Id
    @Column(columnDefinition="binary(20)", length = 20)
    private String videoId;

    @Column(length = 30, columnDefinition="varchar(30)")
    private String format;

    @Column(columnDefinition="time(3)")
    private java.sql.Time duration;

    private Integer bitRate;

    @Column(columnDefinition="tinyint")
    private short channel;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getVideoId() {
        return videoId;
    }

    public void setVideoId(String videoId) {
        this.videoId = videoId;
    }

    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    public Time getDuration() {
        return duration;
    }

    public void setDuration(Time duration) {
        this.duration = duration;
    }

    public Integer getBitRate() {
        return bitRate;
    }

    public void setBitRate(Integer bitRate) {
        this.bitRate = bitRate;
    }

    public short getChannel() {
        return channel;
    }

    public void setChannel(short channel) {
        this.channel = channel;
    }
}
